<!doctype html>
<html>
<head _tracker='{"pagetype":"detail","carid":"10892128"}'>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>
<meta name="renderer" content="webkit">
<title>瓜子二手车直卖网</title>
<link rel="shortcut icon" type="image/x-icon" href="https://www.guazi.com/favicon.ico" media="screen"/>
</head>

<script type="text/javascript" src="/js/detail1.js"></script>
<script type="text/javascript" src="/js/detail2.js"></script>
<body>

<div class="header">
    <div class="hd-top clearfix">
        <a href="{{$city}}" class="logo" title="瓜子二手车直卖网">
            {{$china_city}}二手车
        </a>
    <div class="c2city">
                <a href="/{{$city}}/" class="choose-city">
                    <span>
                        {{$china_city}}                    <i>&nbsp;</i>
                    </span>
                </a>
                    <i class="maskline"></i>
                    <div class="city-box">
                        <div class="all-city">
                            @foreach($citys as $key=>$value)
                                                        <dl>
                                <dt>{{$key}}</dt>
                                                                    <dd>
                                                                        @foreach($value as $k=>$v)
                                                                            <a   href="/{{$k}}/" title="{{$v}}二手车">{{$v}}</a>
                                                                        @endforeach
                                                                    </dd>
                            </dl>
                            @endforeach

                                                    </div>
                        <p class="more-city">更多城市正在加紧筹备，敬请期待。</p>
                    </div>
                </div>

             @if (Auth::check())
             <div class="uc js-uc">
                <a class="" id="js-login-temp" href="{{url('auth/logout')}}">
                    <span style="font-size:16px;margin-right:-10px;padding-left:-20px">退出</span>
                </a>
            </div>
            <div class="uc js-uc">
                <a class="" id="js-login-temp" href="/{{$city}}/user/collect">
                    <span style="font-size:16px;border-right:2px solid grey;padding-right:15px">
                        欢迎：{{Auth::user()->username}}
                    </span>
                </a>
            </div>

              @else
            <div class="uc">
                <a id="js-login-temp" href="{{url('auth/register')}}">
                    <span style="font-size:16px">注册</span>
                </a>
            </div>

            <div class="uc" id="js-login-temp">
                <a href="{{url('auth/login')}}">
                    <span style="font-size:16px;border-right:2px solid grey;padding-right:13px">登录</span>
                </a>
            </div>

            @endif



        <div class="search-box" style="margin-right:80px">
            <div class="suggestion_widget" data-default-count="0">
                <form class="" id = 'yy' action="" method="post">
                    {!!csrf_field()!!}
                    <input type="text" id="xxx" class="search-input js_search_input_index" placeholder="搜索您想要的车" name="keyword" autocomplete="off" data-domain="bj">
                    <button class="search-btn">搜索</button>
                </form>
            </div>
        </div>
        <script type="text/javascript">
             $('#xxx').mouseleave(function(){
                //  alert(123);
                //  console.log($('#xxx').val());
                 $.ajax({
                     type:'post',
                     url:'/getBrandPinyin',
                     data:{
                         'brand':$('#xxx').val(),
                         '_token':'{{csrf_token()}}'
                     },
                     success:function(data){
                         if (data != 0) {
                             $('#yy').attr('action',"/{{$city}}/"+data);
                         }
                     }
                 })
             })


        </script>
    </div>

    <div class="nav">
        <div class="w">
            <a class="fl "  href="/{{$city}}/"  title="瓜子二手车">首页</a>
            <a class="fl "  href="/{{$city}}/buy"  title="{{$china_city}}个人二手车">我要买车</a>
            <a class="fl "  href="/{{$city}}/sellcar"  title="{{$china_city}}二手车出售">我要卖车</a>
        </div>
    </div>


 <div class="crumbs">
                        <a href="/{{$city}}" rel="nofollow">首页</a>
                        <em>></em>
                            <a href="/{{$city}}/buy" >{{$china_city}}二手车</a>
                        <em>></em>
                            <a href="/{{$city}}/{{$brand_pinyin}}" >{{$china_city}}{{$info->brand_name}}二手车</a>
                        <em>></em>
                            <a href="/{{$city}}/{{$series_pinyin}}" >{{$china_city}}二手{{$info->brand_name}}{{$info->series_name}}</a>
                        <em>></em>
                            <span>{{$info->brand_name}}{{$info->series_name}}{{$info->year_type}}{{$info->type}}</span>
                        </div>


<div class="w">
    <div class="detailbox">

        <div class="laybox clearfix">

            <div class="det-sumleft slideshow">
                <div class="dt-sumpic" data-role="imgContainer">
                    <a href="javascript:void(0);" data-role="imgArrow" class="arrow-prew prev"></a>
                    <a href="javascript:void(0);" data-role="imgArrow" class="arrow-next next"></a>
                    <a  class="dt-icon-1 " id="collect"><i></i>收藏</a>

                    <input type="hidden" data-role="navbtn" data-maskname="mask2" id="js-login1">
                    <input type="hidden" data-role="navbtn" data-maskname="mask3" id="skipKind" value="1">
                    <ul class="det-picside">
                        <li data-role="img" style="display: block">


                        <img src="{{$info->index_img_path}}" alt="{{$info->brand_name}}{{$info->series_name}}{{$info->year_type}}{{$info->type}}">

                        <li data-role="img" style="display: none">
                    </ul>
                </div>
                <div class="dt-transcont clearfix">


                    </div>
                </div>
                <div class="det-sumright appoint">
                    <div class="dt-titbox">
                        <h1 class="dt-titletype" title="{{$info->brand_name}}{{$info->series_name}}{{$info->year_type}}{{$info->type}}">{{$info->brand_name}}{{$info->series_name}}{{$info->year_type}}{{$info->type}}</h1>
                        <div class="dt-titleinfo clearfix">
                            <p class="car-error fr">

                            <ul class="title-info-r">

                            </ul>
                            <span style="color:#999">车源号：</span><span style="color:#000">HC-10892128</span>
                        </div>
                    </div>
                    <div class="basic-box">
                        <div class="pricebox">


                            <i class="ico-txt ico-mt">车主报价：</i>
                            <span class="fc-org pricestype"><b class="f30 numtype">&yen;     {{$info->price}}</b>万</span>




                        </div>


                    </div>
                    <div class="add-service">
                        <div class="ser-tit">

                    服务介绍
                            <span>（服务费包含以下内容）</span>
                        </div>
                        <ul class="ser-list clearfix">
                            <li class="li-left">
                            <em>保12大系统</em>
                            <em>最高赔4.68万</em>
                            <i></i>1年2万公里售后保障
                            </li>
                            <li>
                            <i></i>14天可退
                            </li>
                            <li class="li-left">
                            <i></i>259项全面车况检测
                            </li>
                            <li>
                            <i></i>100%个人二手车
                            </li>
                        </ul>
                    </div>
                    <!--服务费-->
                    <div class="car-fuwu">
                        <i class="ico-txt">服&nbsp;务&nbsp;费：</i>
                        <span>3500元（车价x4%，最低3500元）                                    </span>
                    </div>


                    <ul class="assort clearfix">
                        <li class="one"><b>{{$info->reg_time}}</b>上牌时间</li>
                        <li><b>{{$info->mileage}}万公里</b>里程</li>
                        <li>
                        <b>{{$info->license_addr}}</b>上牌地</li>
                    </ul>
                    <p class="stipul-p">








    <div id="kc" style="display:none;width:250px;height:100px;border:1px solid black;position:absolute;border-radius:10px;margin-top:70px;margin-right:30px;text-align:center;">

              <p style="margin-top:10px;font-size:150%">输入您的手机号:</p>
              <input type="text" id="inp" style="margin-top:10px ">
              <input type="submit" id= "mobile" value="提交" style="background-color:green;color:white"
              onclick='tj()'>

    </div>

    <a   class="stipul-btn apt-btn-up" href="/yykc/{{$info->car_id}}/{{$info->sell_id}}/{{$info->price}}" onclick="return yykc()">预约看车</a>


    <span  class="bargain-btn" id="cut" onclick="kj()"
       >砍价</span>

    <div id="kj" style="display:none;width:250px;height:100px;border:1px solid black;position:absolute;border-radius:10px;margin-top:-150px;margin-left:320px;text-align:center;">
          <form action="{{url('postPrice')}}" method='post'  >
          {!!csrf_field()!!}
              <input type="hidden" name="car_id" value="{{$info->car_id}}">
              <input type="hidden" name="price" value="{{$info->price}}">
              <input type="hidden" name="sell_id" value="{{$info->sell_id}}">
              <input type="hidden" name="uid" value="{{$info->uid}}">
              <p style="margin-top:10px;font-size:150%">输入您的出价:</p>
              <input type="text" id="money" name="cut_money" style="height:30px;font-size:16px" autocomplete="off">
              <input  id="tj" type="submit" name="" value="提交" style="background-color:green;color:white;font-size:16px" >
          </form>
    </div>

                    </p>
                </div>
            </div>

            <!-- 检测结果 -->
            <!-- 帖子详细信息 -->
            <div class="laybox">
                <div class="descrip-box">
                    <!--top 菜单-->
                    <div class="cont-tips-outer">
                        <div class="cont-tips fixNavbar">
                            <p class="fr check-tel">
                            </p>
                            <ul class="cont-tips-qh clearfix">
                                <li><a rel="nofollow" data-gzlog="tracking_type=click&eventid=0090000000000077&carid=10892128" href="#base" data-role="item" data-id="#base" class="active" baidu_alog="pc_detail_tab&click&pc_detail_tab_jibenxinxi_c">基本信息</a></li>
                                <li><a rel="nofollow" data-gzlog="tracking_type=click&eventid=0090000000000078&carid=10892128" href="#picture" data-role="item" data-id="#picture" baidu_alog="pc_detail_tab&click&pc_detail_tab_cheliangtupian_c">车辆图片</a></li>
                                <li><a rel="nofollow" data-gzlog="tracking_type=click&eventid=0090000000000079&carid=10892128" href="#report" data-role="item" data-id="#report" baidu_alog="pc_detail_tab&click&pc_detail_tab_jiancebaogao_c">检测报告</a></li>
                            </div>
                        </div>
                        <div class="descrip">
                            <!--车源基本信息-->
                            <div class="modbox" id="base">
                                <h3 class="yahei publicTit" baidu_alog="pc_detail_tab&click&pc_detail_tab_jibenxinxi_c"><i class="deck"></i>基本信息</h3>
                                <ul class="owner-infor clearfix">
                                    <li class="owner">

                                    <label>车主：</label>
                                     {{$info->host}}
                                    <i class="jg-line">|</i>
                                    {{$info->job}}
                                    <i class="jg-line">|</i>

                                    {{$info->addr}}

                                    </li>
                                    <li class="nianjian"><label>年检到期：</label>{{$info->year_check}}</li>
                                    <li class="baoxian"><label>交强险到期：</label>{{$info->strong_insur}}</li>
                                    <li class="baoxian"><label>商业险到期：</label>{{$info->trade}}               <span class="icon-tip-gray js-tip-icon">
                                    <span class="layer-tip bottom-layer js-layer-tip">
                                    <i class="icon-small-sanjiao"></i>保险是否随车赠送，需在交易过程中与车主确认。</span>
                                    </span>
                                    </li>
                                    <li class="guohu"><label>过户次数：</label>{{$info->transfer}}</li>
                                </ul>
                                <p class="f-type03">
                                    <!-- 卖家说明 -->
                                    <em></em>{{$info->seller_intro}}
                                </p>
                            </div>

                            <!--车辆图片-->
                            <div class="modbox" id="picture">
                                <h3 class="yahei publicTit"><i class="deck"></i>车辆图片</h3>


                                <div class="dt-pictype lazyLoadV2">
                                @foreach($otherimgs as $img)
                                    <img width="580" height="400" class="js-lazy-load" src="{{$img}}"/>
                                @endforeach
                                </div>

                            </div>
                            <div class="laybox combox" id="report">
                                <div class="detect-bd clearfix">
                                    <div class="detect-right fr">
                                        <span class="divis-pic evaluatorShow">
                                        <img data-role="evaluatorImg" src="/imgs/default.jpg" width="100" height="150">
                                        </span>
                                        <p class="f-type02">
                                           {{$info->name}}
                                        </p>
                                        <p>
                                            {{$info->level}}车辆评估师
                                        </p>
                                    </div>
                                    <div class="detect-left fl" >
                                        <div class="detect-c scrollTo">
                                            <div class="detect-tt">
                                                <p class="f16 yahei">
                                                    检测结果
                                                </p>
                                            </div>
                                            <div class="detect-info">

                                                <!-- 评估师说明 -->
                                                <div class="detect-txt">
                                                  {{$info->app_intro}}
                                                </div>
                                                <div class="detect-xm clearfix">
                                                    <div class="detect-xm-c showItem">
                                                        <dl>
                                                            <dt>事故排查</dt>
                                                            <dd>
                                                            <span class="d-w1">排除重大碰撞（共18项）</span>
                                                            <span class="d-w2">
                                                            @if($info->ex_collision === 0)
                                                            <i class="via-icon03"></i>
                                                            @else
                                                            <em class="fc-org">
                                                                {{$info->ex_collision}}项
                                                            </em>

                                                            @endif
                                                            </span>
                                                            </dd>
                                                            <dd>
                                                            <span class="d-w1">排除泡水（共8项）</span>
                                                            <span class="d-w2">
                                                            @if($info->ex_water === 0)
                                                            <i class="via-icon03"></i>
                                                            @else
                                                            <em class="fc-org">
                                                                {{$info->ex_water}}项
                                                            </em>

                                                            @endif
                                                            </span>
                                                            </dd>
                                                            <dd>
                                                            <span class="d-w1">排除火烧（共2项）</span>
                                                            <span class="d-w2">
                                                            @if($info->ex_fire === 0)
                                                            <i class="via-icon03"></i>
                                                            @else
                                                            <em class="fc-org">
                                                                {{$info->ex_fire}}项
                                                            </em>

                                                            @endif
                                                            </span>
                                                            </dd>
                                                        </dl>
                                                        <dl>
                                                            <dt>外观内饰检测</dt>
                                                            <dd>
                                                            <span class="d-w1">外观修复检查（共51项）</span>
                                                            <span class="d-w2">
                                                             @if($info->wg_repair === 0)
                                                            <i class="via-icon03"></i>
                                                            @else
                                                            <em class="fc-org">
                                                                {{$info->wg_repair}}项
                                                            </em>

                                                            @endif
                                                            </span>
                                                            </dd>
                                                            <dd>
                                                            <span class="d-w1">外观缺陷检查（共34项）</span>
                                                            <span class="d-w2">
                                                            @if($info->wg_defect === 0)
                                                            <i class="via-icon03"></i>
                                                            @else
                                                            <em class="fc-org">
                                                                {{$info->wg_defect}}项
                                                            </em>

                                                            @endif
                                                            </span>
                                                            </dd>
                                                            <dd>
                                                            <span class="d-w1">内饰缺陷检查（共29项）</span>
                                                            <span class="d-w2">
                                                            @if($info->in_defect === 0)
                                                            <i class="via-icon03"></i>
                                                            @else
                                                            <em class="fc-org">
                                                                {{$info->in_defect}}项
                                                            </em>

                                                            @endif
                                                            </span>
                                                            </dd>
                                                        </dl>
                                                        <dl>
                                                            <dt>系统设备检测</dt>
                                                            <dd>
                                                            <span class="d-w1">安全及指示灯检测（共11项）</span>
                                                            <span class="d-w2">
                                                             @if($info->xt_light === 0)
                                                            <i class="via-icon03"></i>
                                                            @else
                                                            <em class="fc-org">
                                                                {{$info->xt_light}}项
                                                            </em>

                                                            @endif
                                                            </span>
                                                            </dd>
                                                            <dd>
                                                            <span class="d-w1">刹车及发动机舱检测（共12项）</span>
                                                            <span class="d-w2">
                                                            @if($info->xt_engine === 0)
                                                            <i class="via-icon03"></i>
                                                            @else
                                                            <em class="fc-org">
                                                                {{$info->xt_engine}}项
                                                            </em>

                                                            @endif
                                                            </span>
                                                            </dd>
                                                            <dd>
                                                            <span class="d-w1">随车工具检测（共14项）</span>
                                                            <span class="d-w2">
                                                             @if($info->xt_tool === 0)
                                                            <i class="via-icon03"></i>
                                                            @else
                                                            <em class="fc-org">
                                                                {{$info->xt_tool}}项
                                                            </em>

                                                            @endif
                                                            </span>
                                                            </dd>
                                                        </dl>
                                                        <dl>
                                                            <dt>驾驶检测</dt>
                                                            <dd>
                                                            <span class="d-w1">启动与起步（共5项）</span>
                                                            <span class="d-w2">
                                                            <i class="via-icon03"></i>
                                                            </span>
                                                            </dd>
                                                            <dd>
                                                            <span class="d-w1">加速与行驶（共8项）</span>
                                                            <span class="d-w2">
                                                             @if($info->js_start === 0)
                                                            <i class="via-icon03"></i>
                                                            @else
                                                            <em class="fc-org">
                                                                {{$info->js_start}}项
                                                            </em>
                                                            @endif
                                                            </span>
                                                            </dd>
                                                            <dd>
                                                            <span class="d-w1">减速与制动（共4项）</span>
                                                            <span class="d-w2">
                                                            @if($info->js_brake === 0)
                                                            <i class="via-icon03"></i>
                                                            @else
                                                            <em class="fc-org">
                                                                {{$info->js_brake}}项
                                                            </em>
                                                            @endif
                                                            </span>
                                                            </dd>
                                                        </dl>
                                                    </div>
                                                </div>


                                            </div>
                                        </div>
                                    </div>
                                </div>
                            </div>
    <div class="footer">
        <!--加载footer 信息部分 -->
    @include('footer')
    <!-- side  bar  e -->
    <script type="text/javascript" >
        function tj(){
            var kc = document.getElementById('kc');
            if(kc.style.display == 'block'){
               kc.style.display = 'none';
            }
                return false;
            }

        function kj(){
            var kc = document.getElementById('kj');
             if(kc.style.display == 'none'){
                kc.style.display = 'block';
             }
             return false;
        }
    </script>
    <script type="text/javascript" src="/js/jquery.js"></script>
    <script type="text/javascript">

        $('#tj').click(function(){
            var inp = document.getElementById('money').value;
            var reg = /^[1-9]\d*$|^0$/;
            if(inp == ''){
                alert('请输入价格');
                return false;
            }else if(reg.test(inp) == false){
                alert('格式不正确,请重新输入');
                return false;
            }
        });

         function yykc(){
                var kc = Math.random();
                if(kc > 0.3){
                    alert('预约成功');
                }else{
                    alert('预约失败');
                    return false;
                }

            }


     </script>
      <script type="text/javascript">
          $('#collect').click(function(){
              $.ajax({
                 method:'get',
                 url:'/collectId',
                 data:{
                    'car_id':{{$info->car_id}},
                     'city': '{{$city}}'
                 },
                 success:function(data){

                        if (data == 1) {
                            confirm("收藏成功");
                        } else {
                            alert('已经收藏 ');
                        }
                 }
              });
          });



      </script>
    </body>
    </html>
